@if($model->status == 1)
    @if($model->tag_status == 1)
        @if(\Encore\Admin\Facades\Admin::user()->can('fba.upload'))
            <button class="btn btn-xs btn-danger grid-upload-tag" data-id="{{ $model->id }}">上传标签</button>
        @endif
    @else
        {{ $model->tag_name }}
        <a target="_blank" style="margin-left: 5px;" href="/xqc/delivery/review-download?id={{ $model->id }}&file=tag_name"
           class="btn btn-xs btn-default">下载</a>
        @if(\Encore\Admin\Facades\Admin::user()->id == $model->seller_id || \Encore\Admin\Facades\Admin::user()->inRoles(['sales-executive','sales-director','administrator']))
            <a data-id="{{ $model->id }}" href="javascript:void(0);"
               class="btn btn-xs btn-danger grid-row-delete-tag">
                <i class="fa fa-trash"> 删除</i>
            </a>
        @endif
    @endif
@else
    @if($model->tag_status == 2)
        {{ $model->tag_name }}
        <a target="_blank" style="margin-left: 5px;" href="/xqc/delivery/review-download?id={{ $model->id }}&file=tag_name"
           class="btn btn-xs btn-default">下载</a>
    @endif
@endif
<div class="modal fade" id="myModal" tabindex="-1">
    <div class="modal-dialog">
        <div class="modal-content">
            <!-- 内容会加载到这里 -->
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
